<?php

namespace app\business\validate;

use think\Validate;

class BuyerValidate extends Validate
{
    protected $rule = [
        'name' => 'require',
        'phone' => 'unique:buyer',
//        'area' => 'require|number'
    ];

    protected $message = [
        'name.require' => '客户名称不能为空',
//        'area.require' => '需求区域不能为空',
//        'area.number' => '需求区域不能为空'
        'phone.unique' => '手机号不能重复',
    ];
}